package text_2023_09_22;

import java.util.Objects;

/**
 * @author Vv
 * @version 1.0
 * @project coding_learn
 * @description
 * @date 2023/9/22 11:10:20
 */
public class Student {
    public int id;
    public String sname;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return id == student.id && Objects.equals(sname, student.sname);
    }

}
